import App from './App'
import Vue from 'vue'
import uView from 'uni_modules/uview-ui'
Vue.use(uView)

// 路由封装，可扩展路由拦截
import uRrouter from '@/router/uRouter.js'
Vue.prototype.$uRouter = uRrouter

// 全局混入路由跳转
import { routerMixins } from '@/mixins/routerMixins.js'
Vue.mixin(routerMixins)
// 全局混入分享
import mpShareMixins from '@/mixins/mpShareMixins.js'
Vue.mixin(mpShareMixins)

// 全局dom文本过滤器
import { domText, domYMD, domPlayNumber } from '@/utils/filter/domFilter.js'
Vue.filter('domText', domText)
Vue.filter('domYMD', domYMD)
Vue.filter('domPlayNumber', domPlayNumber)

Vue.config.productionTip = false

App.mpType = 'app'

import store from '@/store'

const app = new Vue({
  store,
  ...App
})

// 引入请求封装，将app参数传递到配置中
require('@/config/http.interceptor.js')(app)

app.$mount()
